/**
 * 
 */
package com.lidian.dateTest;

import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author lidian
 * 
 */
public class Date2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String courseDateString = "2009/09/11";
		String courseBeginTimeString = "08:00";
		String courseEndTimeString = "08:15";

		Format timeformat = new SimpleDateFormat("hh:mm");
		Format dateformat = new SimpleDateFormat("yyyy/mm/dd E");
		Date beginDateTime = null;
		Date endDateTime = null;
		try {
			System.out.println(dateformat.format(courseDateString + " "
					+ timeformat.format(courseBeginTimeString) + "-"
					+ timeformat.format(courseEndTimeString)));
		} catch (Exception ex) {
			ex.printStackTrace();
		}
		System.out.println();
	}
}
